
import thenFs from "then-fs"

thenFs.readFile("./1111.txt","utf8")

    .then(
    (r1)=>{
        //成功跳转到这里
        console.log(r1)
        return thenFs.readFile("./2.txt","utf8")
    },
        (err)=>{
        //失败跳转到这里
            console.log("12312312312"+err)
            return thenFs.readFile("./2.txt","utf8")
        }
)
.then(
    (r1)=>{
        console.log(r1)
        return thenFs.readFile("./3.txt","utf8")
    }
)
.then(
    (r1)=>{
        console.log(r1)
    }
)
